﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using iBuproModel;
using System.Web.Mvc;
using IBupro.Models.Classes;
using iBuproModel.Repositories.Interfaces;


namespace IBupro.Models
{
    public class SearchDiplomProject : CustomModel
    {

        public string SearchQuery { get; set; }
        public int projectType { get; set; }


        public MultiSelectList GetDiplomProjectTypeList()
        {
            IDiplomProjectTypeRepository types = repositoryService.DiplomProjectTypeRepositoryCreateInstance();
            MultiSelectList list = new MultiSelectList(types.GetAll(), "Id", "Name");
            return list;
           
        }
    }
}